package com.airycode.distribution.distribution1.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by zkr-fanxirui on 2017/8/15.
 */
@Entity
@Table(name = "tb_user")
public class UserEntity implements Serializable{

    @Id
    @Column(name = "id")
    private String id;
    @Column(name = "user_name")
    private String userName;
    @Column(name = "user_mail")
    private String userMail;//用户邮箱
    @Column(name = "user_phone")
    private String userPhone;//用户手机
    @Column(name = "user_password")
    private String userPassword;//用户密码
    @Column(name = "user_pass_problem")
    private String userPassProblem;//密保问题
    @Column(name = "user_pass_answer")
    private String userPassAnswer;//密保答案

    //set/get方法


    public void setId(String id) {
        this.id = id;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setUserMail(String userMail) {
        this.userMail = userMail;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public void setUserPassProblem(String userPassProblem) {
        this.userPassProblem = userPassProblem;
    }

    public void setUserPassAnswer(String userPassAnswer) {
        this.userPassAnswer = userPassAnswer;
    }

    public String getId() {
        return id;
    }

    public String getUserName() {
        return userName;
    }

    public String getUserMail() {
        return userMail;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public String getUserPassProblem() {
        return userPassProblem;
    }

    public String getUserPassAnswer() {
        return userPassAnswer;
    }
}
